<template>
  <div class="achievement-wall">
    <h2>成就墙</h2>
    <div class="badges">
      <div class="badge collect">
        <span class="icon">🏅</span>
        <span>小小收纳家</span>
        <div class="desc">使用全部记账方式</div>
      </div>
      <div class="badge challenge">
        <span class="icon">🎖️</span>
        <span>七日坚持者</span>
        <div class="desc">连续记账一周</div>
      </div>
    </div>
    <div class="eggs">
      <div class="egg shake">
        <span class="icon">🥚</span>
        <span>摇一摇彩蛋</span>
        <div class="desc">摇晃设备触发财商问答</div>
      </div>
      <div class="egg motto">
        <span class="icon">💡</span>
        <span>每日励志</span>
        <div class="desc">首次登录弹出励志标语</div>
      </div>
    </div>
    <router-link to="/" class="back-btn">返回首页</router-link>
  </div>
</template>

<script setup lang="ts">
// 这里可后续引入成就与彩蛋逻辑
</script>

<style scoped>
.achievement-wall {
  background: #F9F9F9;
  min-height: 100vh;
  padding: 32px 0 40px 0;
  text-align: center;
}
.badges, .eggs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.badge, .egg {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #eee;
  width: 160px;
  min-height: 120px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.desc {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}
.back-btn {
  display: inline-block;
  margin-top: 32px;
  background: #6CC417;
  color: #fff;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px #cdebb0;
  transition: background 0.2s;
}
.back-btn:active {
  background: #4e9e13;
}
</style>